.ditu-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f5f5f5;
  /* 添加以下样式防止页面滚动 */
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  /* 固定头部 */
  flex-shrink: 0;
  z-index: 10;
  
  .title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
  }
  
  .back-btn {
    background-color: #007aff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
  }
}

.search-container {
  padding: 15px 20px;
  background-color: #fff;
  border-bottom: 1px solid #eee;
  
  .search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    
    .search-input {
      flex: 1;
      padding: 12px 15px;
      border: 1px solid #007aff;
      border-radius: 20px;
      background-color: #f8f8f8;
      font-size: 14px;
      cursor: pointer;
      
      /* 添加点击效果 */
      &:active {
        background-color: #e8e8e8;
      }
    }
    
    .clear-btn {
      background-color: #ff3b30;
      color: white;
      border: none;
      border-radius: 20px;
      padding: 10px 15px;
      font-size: 12px;
    }
  }
}

.map-container {
  flex: 1;
  position: relative;
  /* 确保地图容器不会溢出 */
  overflow: hidden;
  
  .map {
    width: 100%;
    height: 100%;
    /* 防止地图自身滚动影响页面 */
    position: absolute;
    top: 0;
    left: 0;
  }
  
  .map-controls {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    
    .control-btn {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background-color: rgba(255, 255, 255, 0.9);
      border: 1px solid #ddd;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      font-weight: bold;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      
      &.location-btn {
        font-size: 16px;
      }
    }   
  }
}